﻿using System.ComponentModel.DataAnnotations;

namespace ProduceBasicData.Api.DTO
{
    /// <summary>
    /// 来料表dto类
    /// </summary>
    public class IncomingDto
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        public string IncomingCode { get; set; }

        /// <summary>
        /// 供应商外键
        /// </summary>
        public int SupplierId { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SupplierName { get; set; }

        /// <summary>
        /// 物料外键
        /// </summary>
        public int GroupId { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string Batch { get; set; }

        /// <summary>
        /// 生效日期
        /// </summary>
        public DateTime? EffectiveDate { get; set; }

        /// <summary>
        /// 失效日期
        /// </summary>
        public DateTime? ExpirationDate { get; set; }

        /// <summary>
        /// 来料数量
        /// </summary>
        public int NUmbner { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(50)]
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(50)]
        public string? UpdateName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
